package com.hdy.login.dao.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.hdy.login.dao.LoginDao;
import com.hdy.login.entity.User;

/*
	by 何栋宇
	2013-1-19
 */
public class LoginDaoImpl extends HibernateDaoSupport implements LoginDao{

	@Override
	public User saveUser(User user) {
		Long id = (Long)this.getHibernateTemplate().save(user);
		user.setId(id);
		User s;
		return user;
	}

}
